package com.xuge.common.exception;

import lombok.Data;

@Data
public class EException extends RuntimeException{
    private String message;

    private int code = 500;

    public EException(String message){
        super(message);
        this.message = message;
    }
    public EException(String message,int code){
        super(message);
        this.message = message;
        this.code = code;
    }

}
